<template>
  <div>
    <el-card>
      <div class="box-cantant">
        <img :src="userStore.avatar" alt="头像" class="avatar" />
        <div class="title-content">
          <h3 class="title">
            {{ getTimeMessage() }}好~ {{ userStore.username }}
          </h3>
          <p class="sub-title">{{ '甄选运营平台' }}</p>
        </div>
      </div>
    </el-card>
    <div class="back">
      <svg-icon name="back" width="500px" height="400px"></svg-icon>
    </div>
  </div>
</template>
<script setup lang="ts">
import useUserStore from '@/store/modules/user'
import { getTimeMessage } from '@/utils/time'
const userStore = useUserStore()
</script>
<style lang="scss" scoped>
.box-cantant {
  display: flex;
  .avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0px 20px 0px 0px;
  }
  .title-content {
    .title {
      font-size: 30px;
      margin-bottom: 30px;
      font-weight: 900;
    }
    .sub-title {
      font-style: italic;
      color: skyblue;
    }
  }
}

.back {
  display: flex;
  justify-content: center; /* 水平居中 */
  align-items: center;
  margin-top: 100px;
}
</style>
